﻿
@using LeadThing.AbpZeroTemplate.Localization
@* 这里是通过ng的控制权去查找相对应的js信息。所有我们的没一个js文件就是单独的一个控制权。。。尼玛angular设计太爽了。。。厉害了，，，顺哥！！！ *@
          
<div class="row">
    <div ng-controller="common.views.areas.index as vm" class="col-sm-12">
        <div class="row margin-bottom-5">
            <div class="col-xs-6">
                <div class="page-head">
                    <div class="page-title">
                        <h1>
                            <span>@L("Area")</span> <small>@L("AreaHeaderInfo")</small>
                        </h1>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 text-right">
                <button class="btn blue" ng-click="vm.areaTree.reload()"><i class="fa fa-refresh"></i> @L("Refresh")</button>
                <button class="btn btn-default " ng-click="vm.exportToExcel()"><i class="fa fa-plus"></i>@L("ExportToExcel")</button>
                @*//判断是否拥有创建地区的权限*@
                <button ng-if="vm.permissions.create" class="btn btn-primary blue" ng-click="vm.areaTree.openCreateOrEditUnitModal(null)"><i class="fa fa-plus"></i> @L("CreateArea")</button>
            </div>
        </div>
        <div class="portlet light margin-bottom-0">
            <div class="portlet-body">
                <div class="form">
                    <form class="horizontal-form">
                        <div class="form-body" enter-key="vm.getPagedareas()">
                            <div class="row margin-bottom-10">
                                <div class="col-md-12">
                                    <div class="inputs inputs-full-width">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div busy-if="vm.loading" class="row">
                    <!-- 将配置传入指令中 -->
                    <div id="AreaTree" class="col-sm-3"></div>
                    <div class="col-sm-8">
                        <img src="~/Common/Images/map.png" style="width: 100%;height: auto;"/>
                    </div>
                </div>

            </div>
        </div>
    </div>
    
</div>



